<?	

$submenu = array (
	'edificios'						=> 'edificios',
	'aulas-e-interiores' 			=> 'aulas e interiores',
	'talleres' 						=> 'talleres',
	'laboratorio-de-informatica'	=> 'laboratorio de informatica',
);

$nivel = 'instalaciones';

$subnivel = ($_GET['subtpl'] && $submenu[$_GET['subtpl']])? $_GET['subtpl'] : key($submenu);

// Obtengo el tpl a incluir
$subtpl = CONFIG_DOCUMENT_ROOT.'includes/modules/'.$nivel.'/'.$subnivel.'.tpl.php';

?>

	<div class="levels-active">
		<?	foreach ($niveles as $k => $v): ?>
			<a href="/site/<?=$k?>/" class="<?=$k?>"><?=$v?></a>
		<?	endforeach; ?>
	</div>

	<div class="institucional-content <?=$subnivel?>">

		<h1>Instalaciones</h1>

		<div class="submenu">
			<?	foreach ($submenu as $k => $v): ?>
				<a href="/site/<?=$nivel?>/<?=$k?>/" <?=($k==$subnivel)? 'class="active"' : ''?> ><?=$v?></a>
			<?	endforeach; ?>
		</div>

		<?	include($subtpl); ?>
	
	</div>
